<template>
  <div class="cockpit-bd-card">
    <div class="cockpit-bd-card--bd cockpit-bd-card--top"></div>
    <div class="cockpit-bd-card--bd cockpit-bd-card--left"></div>
    <div class="cockpit-bd-card--bd cockpit-bd-card--bottom"></div>
    <div class="cockpit-bd-card--bd cockpit-bd-card--right"></div>
    <slot></slot>
  </div>
</template>
<script>
export default {
  name: 'Card'
};
</script>
<style lang="less" scoped>
.cockpit-bd-card {
  padding: 6px 20px;
  box-sizing: border-box;
  position: relative;
  height: 158px;
  margin-top: 10px;
  .cockpit-bd-card--bd {
    position: absolute;
    background: rgba(70, 180, 243, 0.5);
    &::before {
      content: '';
      width: 4px;
      height: 4px;
      background: #46B4F3;
      border-radius: 50%;
      position: absolute;
      box-shadow: 0 0 10px #46B4F3;
    }
    &::after {
      content: '';
      width: 4px;
      height: 4px;
      background: #46B4F3;
      border-radius: 50%;
      position: absolute;
      box-shadow: 0 0 10px #46B4F3;
    }
    &.cockpit-bd-card--top {
      height: 2px;
      width: 96%;
      top: 0;
      left: 2%;
      &::before {
        left: 0;
        top: -1px;
      }
      &::after {
        right: 0;
        top: -1px;
      }
    }
    &.cockpit-bd-card--bottom {
      height: 2px;
      width: 96%;
      bottom: 0;
      left: 2%;
      &::before {
        left: 0;
        top: -1px;
      }
      &::after {
        right: 0;
        top: -1px;
      }
    }
    &.cockpit-bd-card--left {
      width: 2px;
      height: 96%;
      left: 0;
      top: 2%;
      &::before {
        top: 0;
        left: -1px;
      }
      &::after {
        bottom: 0;
        left: -1px;
      }
    }
    &.cockpit-bd-card--right {
      width: 2px;
      height: 96%;
      right: 0;
      top: 2%;
      &::before {
        top: 0;
        left: -1px;
      }
      &::after {
        bottom: 0;
        left: -1px;
      }
    }
  }

  .cockpit-bd-card--content {
    padding: 10px 20px;
    box-sizing: border-box;
  }
}
</style>
